define(function(){
    return function (localData){
        return localData.reduce((start,val)=>{
            return val.flag ? start+val.sprice*val.num : start
            
        },0)
    }
});